package com.ruoyi.fileMaintenance.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程绑定 t_course_binding
 * 
 * @author ruoyi
 * @date 2024-03-27
 */
public class TCourseBinding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 用户id */
    @ApiModelProperty("用户id")
    private Long userId;

    /** 课程id */
    @ApiModelProperty("课程id")
    private Long courseId;

    /** 课程名称 */
    @ApiModelProperty("课程名称")
    private String courseName;

    /** 总数 */
    @ApiModelProperty("总数")
    private int totalNum;

    /** 已学 */
    @ApiModelProperty("已学")
    private int Learned;

    /** 未学 */
    @ApiModelProperty("未学")
    private int notLearned;

    /** 主键 */
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 用户id */
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /** 课程id */
    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    /** 总数 */
    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    /** 已学 */
    public int getLearned() {
        return Learned;
    }

    public void setLearned(int learned) {
        this.Learned = learned;
    }

    /** 未学 */
    public int getNotLearned() {
        return notLearned;
    }

    public void setNotLearned(int notLearned) {
        this.notLearned = notLearned;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("courseId", getCourseId())
                .append("courseName", getCourseName())
                .append("totalNum", getTotalNum())
                .append("Learned", getLearned())
                .append("notLearned", getNotLearned())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }

    /** 课程名称 */
    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
}
